import Vue from 'vue'
import VueRouter from 'vue-router'
//导入路由
import login from '@/views/user/login.vue'

Vue.use(VueRouter)

//配置路由
const routes = [
 {
  name: 'login',
  path: '/login',
  component: login
 }
]

const router = new VueRouter({
  routes
})

export default router
